.class Ldgb/n4$a;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroid/content/ServiceConnection;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Ldgb/n4;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ldgb/n4;


# direct methods
.method constructor <init>(Ldgb/n4;)V
    .locals 0

    .line 1
    iput-object p1, p0, Ldgb/n4$a;->a:Ldgb/n4;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
    .locals 1

    .line 1
    sget-boolean p1, Ldgb/z;->c:Z

    if-eqz p1, :cond_0

    const-string p1, "stat.ServiceInterator"

    const-string v0, "Service is connected!"

    .line 2
    invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 3
    :cond_0
    iget-object p1, p0, Ldgb/n4$a;->a:Ldgb/n4;

    new-instance v0, Landroid/os/Messenger;

    invoke-direct {v0, p2}, Landroid/os/Messenger;-><init>(Landroid/os/IBinder;)V

    invoke-static {p1, v0}, Ldgb/n4;->a(Ldgb/n4;Landroid/os/Messenger;)Landroid/os/Messenger;

    .line 4
    iget-object p1, p0, Ldgb/n4$a;->a:Ldgb/n4;

    const/4 p2, 0x1

    invoke-static {p1, p2}, Ldgb/n4;->a(Ldgb/n4;Z)Z

    .line 5
    iget-object p1, p0, Ldgb/n4$a;->a:Ldgb/n4;

    invoke-static {p1}, Ldgb/n4;->a(Ldgb/n4;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 6
    iget-object p1, p0, Ldgb/n4$a;->a:Ldgb/n4;

    const/4 p2, 0x6

    invoke-virtual {p1, p2}, Ldgb/n4;->a(I)Z

    .line 7
    iget-object p1, p0, Ldgb/n4$a;->a:Ldgb/n4;

    invoke-static {p1}, Ldgb/n4;->b(Ldgb/n4;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 8
    iget-object p1, p0, Ldgb/n4$a;->a:Ldgb/n4;

    invoke-virtual {p1}, Ldgb/n4;->b()Z

    .line 9
    :cond_1
    iget-object p1, p0, Ldgb/n4$a;->a:Ldgb/n4;

    invoke-static {p1}, Ldgb/n4;->c(Ldgb/n4;)Ljava/util/concurrent/CopyOnWriteArrayList;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p2

    if-eqz p2, :cond_2

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ldgb/k;

    .line 10
    iget-object v0, p0, Ldgb/n4$a;->a:Ldgb/n4;

    invoke-virtual {v0, p2}, Ldgb/n4;->a(Ldgb/k;)Z

    goto :goto_0

    .line 11
    :cond_2
    iget-object p1, p0, Ldgb/n4$a;->a:Ldgb/n4;

    const/4 p2, 0x0

    invoke-static {p1, p2}, Ldgb/n4;->b(Ldgb/n4;Z)Z

    .line 12
    iget-object p1, p0, Ldgb/n4$a;->a:Ldgb/n4;

    invoke-static {p1}, Ldgb/n4;->c(Ldgb/n4;)Ljava/util/concurrent/CopyOnWriteArrayList;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->clear()V

    return-void
.end method

.method public onServiceDisconnected(Landroid/content/ComponentName;)V
    .locals 1

    .line 1
    sget-boolean p1, Ldgb/z;->c:Z

    if-eqz p1, :cond_0

    const-string p1, "stat.ServiceInterator"

    const-string v0, "Service is Disconnected!"

    .line 2
    invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 3
    :cond_0
    iget-object p1, p0, Ldgb/n4$a;->a:Ldgb/n4;

    const/4 v0, 0x0

    invoke-static {p1, v0}, Ldgb/n4;->a(Ldgb/n4;Z)Z

    return-void
.end method
